import fetch from 'utils/fetch';

export function page(query) {
  return fetch({
    url: '/api/shop/category/page',
    method: 'get',
    params: query
  });
}

export function save(data) {
  return fetch({
    url: '/api/shop/category/save',
    method: 'post',
    data
  });
}

export function all() {
  return fetch({
    url: '/api/shop/category/all',
    method: 'get'
  })
}